﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace VikingArcade_v2._0
{
    public static class GameContentManager
    {
        public static GameObjectFactory GameObjectFactory { get; set; }

        public static BoardFactory BoardFactory { get; set; }

        private static ContentManager contentManager { get; set; }

        public static void Initialize(ContentManager content)
        {
            contentManager = content;
            GameObjectFactory = new GameObjectFactory();
            BoardFactory = new BoardFactory();
        }

        public static Texture2D GetTexture(string name)
        {
            return contentManager.Load<Texture2D>("Textures/" + name);
        }

        public static SpriteFont GetFont(string name)
        {
            return contentManager.Load<SpriteFont>("Resources/Fonts/" + name);
        }
    }
}
